Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Semicolon for J.Unknown and no unnecessary JS.ExpressionStatement #124

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

knutwannheden
Copy link
Contributor

A J.Unknown inside a JRightPadded doesn't need any Semicolon, as the J.Unknown will already contain the semicolon in its source.

Also, the parser should not produce any unnecessary JS.ExpressionStatements, as visitors like the visitor implementation in Java will automatically remove that and thus cause the tree to change.

…ment`

A `J.Unknown` inside a `JRightPadded` doesn't need any `Semicolon`, as the `J.Unknown` will already contain the semicolon in its source.

Also, the parser should not produce any unnecessary `JS.ExpressionStatement`s, as visitors like the visitor implementation in Java will automatically remove that and thus cause the tree to change.
@knutwannheden knutwannheden merged commit 29511db into main Oct 8, 2024
2 checks passed
@knutwannheden knutwannheden deleted the parser-fixes branch October 8, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant